import axios from 'axios'

//获取列表
export async function getList(){
    var resp = await axios.get('/api/promotion/promotionList');
    console.log(resp.data);
    return resp.data;
}

//模糊查询
export async function getqueryList(queryPromotion){
    var resp = await axios.get('/api/promotion/queryList', {
        params: {
            size:queryPromotion.size,
            code:queryPromotion.code,
        }
    });
    return resp.data;
}

//审核通过
export async function suessR(promotionSeq){
    var resp = await axios.get('/api/promotion/success', {
        params: {
            promotionSeq:promotionSeq
        }
    });
    return resp.data;
}

//审核不通过
export async function unsuessR(promotionSeq){
    var resp = await axios.get('/api/promotion/unsuccess', {
        params: {
            promotionSeq:promotionSeq
        }
    });
    return resp.data;
}